﻿package com.ease.platform.usercontext.vo
{
	import com.ease.platform.model.type.IdentityUser;
	import mx.collections.ArrayCollection;

	[Bindable]
	[RemoteClass(alias="com.ease.platform.usercontext.vo.UserContext")]
	
	public class UserContext
	{

		private var _guid:String;
		private var _hostName:String;
		private var _hostAddress:String;
		private var _operator:String;
		private var _userId:Number;
		private var _user:com.ease.platform.model.type.IdentityUser;
		private var _groups:mx.collections.ArrayCollection;
		private var _maintenanceLocations:mx.collections.ArrayCollection;
		private var _maintenanceSubareaLocations:mx.collections.ArrayCollection;
		private var _operateTime:Date;
		private var _needValidation:Boolean;

		public function UserContext()
		{
		}

		public function get guid():String
		{
			return _guid;
		}

		public function set guid(value:String):void
		{
			_guid = value;
		}

		public function get hostName():String
		{
			return _hostName;
		}

		public function set hostName(value:String):void
		{
			_hostName = value;
		}

		public function get hostAddress():String
		{
			return _hostAddress;
		}

		public function set hostAddress(value:String):void
		{
			_hostAddress = value;
		}

		public function get operator():String
		{
			return _operator;
		}

		public function set operator(value:String):void
		{
			_operator = value;
		}

		public function get userId():Number
		{
			return _userId;
		}

		public function set userId(value:Number):void
		{
			_userId = value;
		}

		public function get user():com.ease.platform.model.type.IdentityUser
		{
			return _user;
		}

		public function set user(value:com.ease.platform.model.type.IdentityUser):void
		{
			_user = value;
		}

		public function get groups():mx.collections.ArrayCollection
		{
			return _groups;
		}

		public function set groups(value:mx.collections.ArrayCollection):void
		{
			_groups = value;
		}

		public function get maintenanceLocations():mx.collections.ArrayCollection
		{
			return _maintenanceLocations;
		}

		public function set maintenanceLocations(value:mx.collections.ArrayCollection):void
		{
			_maintenanceLocations = value;
		}

		public function get maintenanceSubareaLocations():mx.collections.ArrayCollection
		{
			return _maintenanceSubareaLocations;
		}

		public function set maintenanceSubareaLocations(value:mx.collections.ArrayCollection):void
		{
			_maintenanceSubareaLocations = value;
		}

		public function get operateTime():Date
		{
			return _operateTime;
		}

		public function set operateTime(value:Date):void
		{
			_operateTime = value;
		}

		public function get needValidation():Boolean
		{
			return _needValidation;
		}

		public function set needValidation(value:Boolean):void
		{
			_needValidation = value;
		}
	}
}